<template>
  <el-table-column label="状态" width="100px">
    <template slot-scope="scope">
      <el-tag type="success" class="tag-s" v-if="scope.row.statusName == '有效'"
        >有效</el-tag
      >
      <el-tag
        type="success"
        class="tag-w"
        v-else-if="scope.row.statusName == '无效'"
        >无效</el-tag
      >
    </template>
  </el-table-column>
</template>
<script>
export default {
  name: "groupType",
  components: {},
  data() {
    return {};
  },
  methods: {},
  computed: {},
  watch: {},
};
</script>
<style lang="less" scoped>
.el-tag {
  font-size: 12px !important;
  line-height: 20px;
  padding: 0 6px;
  text-align: center;
  height: 20px;
  border: none;
  color: #fff;
}
.tag-s {
  background-color: #1ebf89;
}
.tag-w {
  background-color: #8c4af5;
}
</style>
